﻿using GalaSoft.MvvmLight.Messaging;
using System.Windows;

namespace TransControlSystem.View.Common
{
    /// <summary>
    /// CreateUserWindow.xaml 的交互逻辑
    /// </summary>
    public partial class CreateUserWindow : Window
    {
        public CreateUserWindow()
        {
            InitializeComponent();
            Messenger.Default.Register<NotificationMessage>(this, (nm) =>
            {
                if (nm.Notification == "HideCreateUserWindow")
                {
                    if (nm.Sender == DataContext)
                        Hide();
                }
            });
        }
    }
}
